<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>商品收藏 - Powered By ${systemConfig.systemName}</title>
<meta name="Author" content="webmall Team" />
<meta name="Copyright" content="webmall" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<#include "/WEB-INF/template/common/include.ftl">
<link href="${base}/template/shop/css/login.css" rel="stylesheet" type="text/css" />
<link href="${base}/template/shop/css/register.css" rel="stylesheet" type="text/css" />
<link href="${base}/template/shop/css/member_center.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${base}/template/shop/js/login.js"></script>
<script type="text/javascript" src="${base}/template/shop/js/register.js"></script>
<script type="text/javascript">
$().ready( function() {
	
	// 删除
	$(".deleteFavorite").click( function() {
		if (confirm("您确定要删除吗？") == false) {
			return false;
		}
	});
	
});
</script>
</head>
<body class="memberCenter">
	<#include "/WEB-INF/template/shop/header.ftl">
	<div class="body favoriteList">
		<div class="bodyLeft">
			<#include "/WEB-INF/template/shop/member_center_left.ftl">
		</div>
		<div class="bodyRight">
			<div class="memberCenterDetail">
				<div class="top">
					商品评论
				</div>
				<div class="middle">
					<div class="blank"></div>
					<table class="listTable">
				<tr>
					<th width="300">
						<span  name="product.name">商品名称</span>
					</th>
					<th>
						<span  name="type">询问类型</span>
					</th>
					<th>
						<span  name="content">询问内容</span>
					</th>
					<th>
						<span  name="replycontent">回复内容</span>
					</th>
					<th>
						<span  name="member.username">询问时间</span>
					</th>
				</tr>
				<#list pager.list as list>
					<tr>
						<td width="200">
							<a href="${base}${list.product.htmlFilePath}">
							<#if (list.product.name?length <= 20)!>
								<span title="${list.product.name}">${list.product.name}</span>
							<#else>
								<span title="${list.product.name}">${list.product.name[0..20]}...</span>
							</#if>
							</a>
						</td>
						<td>
							<#if (list.type==1)>
								商品咨询
							<#elseif (list.type==2)>
								库存及配送
							<#elseif (list.type==3)>
								支付问题
							<#elseif (list.type==4)>
								发票及保修
							<#elseif (list.type==5)>
								促销及赠品
							</#if>
						</td>
						<td>
							<#if (list.content?length <= 20)!>
								<span title="${list.content}">${list.content}</span>
							<#else>
								<span title="${list.content}">${list.content[0..20]}...</span>
							</#if>
						</td>
						<td>
							<#if (list.replycontent?length <= 20)!>
								<span title="${list.replycontent}">${list.replycontent}</span>
							<#else>
								<span title="${list.replycontent}">${list.replycontent[0..20]}...</span>
							</#if>
						</td>
						<td>
							${list.createDate}
						</td>
					</tr>
				</#list>
			</table>
					<div class="blank"></div>
         			<link href="${base}/template/shop/css/pager.css" rel="stylesheet" type="text/css" />
         			<#import "/WEB-INF/template/shop/pager.ftl" as p>
         			<@p.pager pager = pager baseUrl = "/shop/productconsult!list.action" />
				</div>
				<div class="bottom"></div>
			</div>
		</div>
		<div class="blank"></div>
		<#include "/WEB-INF/template/shop/friend_link.ftl">
	</div>
	<div class="blank"></div>
	<#include "/WEB-INF/template/shop/footer.ftl">
</body>
</html>